package cn.service;

import cn.entity.User;

import java.util.List;

public interface UserService {

    public User getUser(Integer id);
    public User loadUser(Integer id);
    public void saveUser(User user);
    public void deleteUser(Integer id);
    public void updateUser(User user);
    public void saveOrUpdateUser(User user);
    public void mergeUser(User user);
    public List<User> findByUserName(String userName);
    public Long findUserCount();
    public List<User> findPage(Integer pageNo,Integer pageSize);
    public  User login(String username,String password);
    public  Integer register(User user);
    public List<User> findAllUser();

}
